<?php
	error_reporting(0);
	session_start();

	if (empty($_SESSION[username]) AND empty($_SESSION[passuser])){
	  echo "<link href='style.css' rel='stylesheet' type='text/css'>
	  <link rel='shortcut icon' href='yakes.ico' />
	 <center><p><font color=#9abd49>Untuk mengakses halaman admin, Anda harus login</font></p> <br>";
	  echo "<a href=index.php><b>LOGIN</b></a></center>";
	}
	else{
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>ADMIN PANEL | Konsultasi Kesehatan Yakes-Telkom</title>
	<link rel="stylesheet" type="text/css" href="style.css" />
	<link rel="shortcut icon" href="yakes.ico" />

	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/ddaccordion.js"></script>
	<script type="text/javascript" src="js/jquery.jclock-1.2.0.js.txt" ></script>
	<script type="text/javascript" src="js/jconfirmaction.jquery.js"></script>
	<script type="text/javascript">
		
		$(document).ready(function() {
			$('.ask').jConfirmAction();
		});
		
	</script>
	<script type="text/javascript">
	$(function($) {
		$('.jclock').jclock();
	});
	</script>

	<link type="text/css" href="js/ui.all.css" rel="stylesheet" />   
    <script type="text/javascript" src="js/ui.core.js"></script>
    <script type="text/javascript" src="js/ui.datepicker.js"></script>   
    <script type="text/javascript" src="js/ui.datepicker-id.js"></script>
    <script type="text/javascript" src="js/effects.core.js"></script>
    <script type="text/javascript" src="js/effects.drop.js"></script>

    <script type="text/javascript"> 
      $(document).ready(function(){
        $("#tanggal").datepicker({
          showAnim    : "drop",
          showOptions : { direction: "up" }
        });
      });
    </script>
</head>


<body>
<div id="page">

	<div id="header">
		<div class="logo"><h1><a href="media.php?module=home"><img src="images/logo_yakes.png" align="left"></a></h1></div>
		<div class="right_header"><a href="media.php?module=home">Admin Home</a> <!--| <a href="media.php?module=konsultasi" class="messages">Messages</a> -->| <a href="logout.php" class="logout">Logout</a></div>
		<div class="jclock"></div>
    </div>
    
    <div id="content">
		
		<div class="right_content">
			<?php include "content.php"?>
		</div><!-- end of right content-->

		<div class="clear"></div>
    </div> <!--end of main content-->
	<div class="clear"></div>
</div>
    
<div id="footer">
    <div class="left_footer"><a href="#">IN ADMIN PANEL KONSULTASI KESEHATAN YAKES-TELKOM</a></div>
    <div class="right_footer"></div>
    
</div>
</body>
</html>
<?php
}
?>